function d=rand_float(a,b)
% rand_float: Generate a random floating point number in specified range
%
% SYNTAX:
%   d = rand_float(a,b)
%   Return generated random floating point number in interval (a,b)

%   Author: Hongbin Ma
%   Last updated: 2009-6-2 with MATLAB 6.5
%   Problems or suggestions? Email me: mathmhb[at]163.com

d=((b-a)*rand(1)+a);
